//#Author:bin
// -*- charset = utf-8 -*-
// @time:2021/12/23 17:11
// @Author:bfl91
// @file : addorder.js
// @Software:WebStorm
export default {
    namespaced:true,
    state:{
        orderList:[]
    },
    mutations:{
    // 添加数据
        addsuccessful(state,obj){
            state.orderList.push(obj)
        }
    },
    getters:{
       getorder(state){
           let number=0;
           let list=0;
           number=state.orderList.length
           list=state.orderList
           return {
               number,list
           }
       }
    }
}